package com.atguigu.guliguli.product.service.impl;

import ch.qos.logback.core.rolling.helper.IntegerTokenConverter;
import com.atguigu.guliguli.product.entity.ProductAttrValueEntity;
import com.atguigu.guliguli.product.mapper.CategoryBrandRelationMapper;
import com.atguigu.guliguli.product.service.ProductAttrValueService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.extension.service.additional.update.impl.LambdaUpdateChainWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Objects;


/**
 * @author: 叶子
 * @date: 2021/11/28 18:57
 **/
@Service
public class ProductAttrValueServiceImpl extends ServiceImpl<CategoryBrandRelationMapper.ProductAttrValueMapper, ProductAttrValueEntity> implements ProductAttrValueService {
    @Override
    public List<ProductAttrValueEntity> baseAttrlistforspu(Long spuId) {
        List<ProductAttrValueEntity> entities = this.baseMapper.selectList(new QueryWrapper<ProductAttrValueEntity>().eq("spu_id", spuId));
        return entities;
    }



}